package com.itheima.service.impl;

import com.itheima.service.PermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.mapper.PermissionMapper;
import com.itheima.pojo.Permission;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.List;

/**
 * @author admin
 */
@DubboService
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

    @Override
    public List<Permission> queryPermissionByUserName(String userName) {
        return baseMapper.queryPermissionByUserName(userName);
    }

    @Override
    public List<String> queryPermissionCodeByUserName(String userName) {
        return baseMapper.queryPermissionCodeByUserName(userName);
    }
}